import java.util.Scanner;

public class test {
    int anInt=2000;
    public static void trySome(int n, String... some) {
        for (int j = 0; j < n; j++) {
            System.out.println(some[j]);
        }
    }


    class text2{
        int anInt=1000;
        public  void trySome(int n, String... some) {
            for (int j = 0; j < n; j++) {
                System.out.println(some[j]);
                System.out.println(anInt);
                System.out.println(test.this.anInt);
            }
        }

    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.next();
        System.out.println(s);
        String a = scanner.nextLine();
        System.out.println(a);
        System.out.println(s);
        System.out.println(a);
        //master分支
        //dev01分支
    }
}
